package cn.lyjuan.dwz_manage.core.config;

import cn.lyjuan.dwz_manage.core.java.exception.ExceptionResolver;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.HandlerExceptionResolver;

/**
 * Created by chad on 2016/9/11.
 */
@Configuration
public class RootConfig
{
    /**
     * 全局异常处理
     * @return
     */
    @Bean
    public HandlerExceptionResolver exceptionResolver()
    {
        return new ExceptionResolver();
    }
}
